package hcn.protocol.ods.report;

import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonIgnore;

import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

/**
 * Created by jinxin on 2016/5/20.
 */
@XmlRootElement(name = "detail")
public class LabCommonDetailBean {
    private InnerBean lab;
    private String labStandardId;
    private String result;
    private String resultClear;
    private String resultPrompt;
    private String resultUnit;
    private String referUpper;
    private String referLower;
    private String labDevice;
    private String unusualFlag;
    private String crisisFlag;
    private String crisisDesc;
    private String dealFlag = "0";      //处理标志
    private String needDealFlag = "0";  //需要处理标志

    @JsonIgnore
    @JsonGetter
    public InnerBean getLab() {
        return lab;
    }

    public void setLab(InnerBean lab) {
        this.lab = lab;
    }

    @XmlTransient
    public String getLabId() {
        return lab.getText();
    }

    @XmlTransient
    public String getLocalLabId() {
        return lab.getLocalCode();
    }

    @XmlTransient
    public String getLabName() {
        return lab.getLocalText();
    }

    public String getLabStandardId() {
        return labStandardId;
    }

    public void setLabStandardId(String labStandardId) {
        this.labStandardId = labStandardId;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getResultClear() {
        return resultClear;
    }

    public void setResultClear(String resultClear) {
        this.resultClear = resultClear;
    }

    public String getResultPrompt() {
        return resultPrompt;
    }

    public void setResultPrompt(String resultPrompt) {
        this.resultPrompt = resultPrompt;
    }

    public String getResultUnit() {
        return resultUnit;
    }

    public void setResultUnit(String resultUnit) {
        this.resultUnit = resultUnit;
    }

    public String getReferUpper() {
        return referUpper;
    }

    public void setReferUpper(String referUpper) {
        this.referUpper = referUpper;
    }

    public String getReferLower() {
        return referLower;
    }

    public void setReferLower(String referLower) {
        this.referLower = referLower;
    }

    public String getLabDevice() {
        return labDevice;
    }

    public void setLabDevice(String labDevice) {
        this.labDevice = labDevice;
    }

    public String getUnusualFlag() {
        return unusualFlag;
    }

    public void setUnusualFlag(String unusualFlag) {
        this.unusualFlag = unusualFlag;
    }

    public String getCrisisFlag() {
        return crisisFlag;
    }

    public void setCrisisFlag(String crisisFlag) {
        this.crisisFlag = crisisFlag;
    }

    public String getCrisisDesc() {
        return crisisDesc;
    }

    public void setCrisisDesc(String crisisDesc) {
        this.crisisDesc = crisisDesc;
    }

    public String getDealFlag() {
        return dealFlag;
    }

    public void setDealFlag(String dealFlag) {
        this.dealFlag = dealFlag;
    }

    public String getNeedDealFlag() {
        return needDealFlag;
    }

    public void setNeedDealFlag(String needDealFlag) {
        this.needDealFlag = needDealFlag;
    }
}
